package com.api.shopapi.service;

import com.alibaba.fastjson.JSONArray;
import com.api.shopapi.entity.MedicationGroup;
import com.api.shopapi.entity.dto.MedicationGroupDTO;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

@Service
public interface MedicationGroupService {

    int insert(MedicationGroup medicationGroup, JSONArray itemNameArr);

    int updateByMedicationGroupCode(MedicationGroup medicationGroup, JSONArray itemNameArr);

    MedicationGroup getByElderlyCode(String elderlyCode);

    MedicationGroup getByMedicationGroupCode(String medicationGroupCode);

    PageInfo<MedicationGroupDTO> getPageList(int pageIndex, int pageSize, String institutionCode,
                                             int status, String elderlyName);


    PageInfo<MedicationGroup> pageByGovCode(int pageIndex, int pageSize, String governmentCode);


}
